package org.codert.jpa.event;


import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author: TanJingyu
 * @create: 2021-09-24 17:36
 **/
@Component
public class MyEventLister{

    @EventListener
    public void listenerMyEvent(MyEvent event) {
        System.out.println(event.getSource());
    }
}
